/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pneuservis.backend.to;

import pneuservis.backend.entities.User;
import pneuservis.backend.others.Roles;

/**
 *
 * @author jajaja
 */
public class UserTO {
    
    private Long id;
    private Roles permission;
    private CustomerTO user;

//    public UserTO() {
//    }
//
//    public UserTO(User u) {
//        if (user == null) throw new IllegalArgumentException();
//    
//        this.id = u.getId();
//        this.permission = u.getPermission();
//        this.user = u.getUser();
//    }
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Roles getPermission() {
        return permission;
    }

    public void setPermission(Roles permission) {
        this.permission = permission;
    }

    public CustomerTO getUser() {
        return user;
    }

    public void setUser(CustomerTO user) {
        this.user = user;
    }
}